package com.powerpoint.springboot3003package.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Service;

@Service
public class ReadConfig {

    @Autowired
    private Environment environment;

    public void print() {
        String name = environment.getProperty("app.name");
        System.out.println("name = " + name);

    }
}
